package m.jclecai.com.ui;

import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.text.Html;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.PopupWindow;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.squareup.okhttp.Request;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;

import butterknife.OnClick;
import m.jclecai.com.R;
import m.jclecai.com.activity.LottoTrendActivity;
import m.jclecai.com.activity.WebHelperActivity;
import m.jclecai.com.adapter.BallsAdapter;
import m.jclecai.com.adapter.independentLotteryAdapter.PLS_SD_QXCA_LotteryAdapter;
import m.jclecai.com.base.BaseActivity;
import m.jclecai.com.bean.BallItem;
import m.jclecai.com.bean.IssueInfoBean;
import m.jclecai.com.bean.MissDataBean;
import m.jclecai.com.constant.Constant_Result;
import m.jclecai.com.constant.Constant_Url;
import m.jclecai.com.contents.LotteryType;
import m.jclecai.com.inter.IAdapterChange;
import m.jclecai.com.utils.BaseUtils;
import m.jclecai.com.utils.MakeRandomUtil;
import m.jclecai.com.utils.PreferenceUtil;
import m.jclecai.com.utils.ShakeUtils;
import m.jclecai.com.utils.http.FastOk;
import m.jclecai.com.utils.http.HttpManager;
import m.jclecai.com.view.BallGridView;
import m.jclecai.com.view.common.BottomBar;
import m.jclecai.com.view.common.VeticalDrawerLayout;
import q.rorbin.badgeview.Badge;

/**
 * Created by hp on 2017/3/21.
 * 选号界面 ssq dlt qlc
 */

public class BetSSQ_DLT_QLCActivity extends BaseActivity {

    private BallsAdapter redBallsAdapter, blueBallsAdapter;
    private PopupWindow pop;
    private TextView tv_number_money;
    private TextView tv_term;
    private TextView tv_date;
    private TextView tv_count;
    //选择的红球 蓝球的总数
    private int redBallCount, blueBallCount;
    //投注的号码
    private List<String> redCode = new LinkedList<>();
    private List<String> blueCode = new LinkedList<>();
    //彩种红蓝球数量
    private int redCount, blueCount;
    //彩种金额计算比率
    private int redMultiple, blueMultiple;
    private TextView tv_hint;
    private String type;
    private ImageView iv_add_selector;

    private ArrayList<String> ballNumber = new ArrayList<>();
    //玩法及模式
    private ArrayList<String> mode = new ArrayList<>();
    //注数及金额
    private ArrayList<String> numMoney = new ArrayList<>();
    //总金额
    private int totalMoney;
    //总注数
    private int totalNum;
    private ListView lv_history;
    //   private SSQ_DLT_QLC_LotteryAdapter independentLotteryAdapter;
    private PLS_SD_QXCA_LotteryAdapter independentLotteryAdapter;
    private int topHeight;

    private MissDataBean.Omission omission;
    private ImageView iv_unfold;
    private LinearLayout ll;

    public String TAG = "BetSSQ_DLT_QLCActivity";
    private TextView mTvMissData;
    private VeticalDrawerLayout mVdlLayout;

    //listView
    BallGridView gridview_ssq_red_ball;
    BallGridView gridview_ssq_blue_ball;
    private BottomBar mBottomBar;
    private View mLlTitle;
    private ShakeUtils mShakeUtils;
    //   private View ll_bottom;


    @Override
    protected int getContentView() {
        return R.layout.betting_activity;
    }

    @Override
    protected void onResume() {
        super.onResume();
        mShakeUtils.register();
    }

    @Override
    protected void initView() {
        leftOptionText("");
        rightOptionText("", R.drawable.action_menu);

    }

}